package com.zhbit.Service.impl;

import java.util.List;

import com.zhbit.DAO.LeaveDao;
import com.zhbit.Service.LeaveService;
import com.zhbit.table.Leave;

public class LeaveServiceImpl implements LeaveService{
private LeaveDao leaveDao;
private Leave leave;
	public Leave getLeave() {
	return leave;
}

public void setLeave(Leave leave) {
	this.leave = leave;
}

	public LeaveDao getLeaveDao() {
	return leaveDao;
}

public void setLeaveDao(LeaveDao leaveDao) {
	this.leaveDao = leaveDao;
}

	@Override
	public List<Leave> findTop() {
		// TODO Auto-generated method stub
		return leaveDao.findtop();
	}
	

	@Override
	public void addleave(Leave leave) {
		// TODO Auto-generated method stub
		leaveDao.addleave(leave);
	}

}
